package com.eeprint.system.domain.tenant;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigInteger;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TenantUser {
    private BigInteger id;
    private String userNick;
    @NotNull(message = "手机号码不为空")
    @Size(max = 11,min = 11,message = "手机号码为11位")
    private String userPhone;
    @NotNull(message = "密码不为空")
    private String userPassword;
    private String userLogo;
    private BigInteger relTenantId;
    private Date createAt;
    private BigInteger createUserId;
    private Date updateAt;
    private BigInteger updateUserId;
    private Integer userRole;
}
